package com.ouc.openplatform.ouc.userLogin.service.impl;
import javax.ws.rs.FormParam;

import com.ouc.openplatform.ouc.userLogin.model.NJ_UserInfoDto;
import com.ouc.openplatform.ouc.userLogin.service.NJ_ClientUserLoginService;
import com.ouc.openplatform.ouc.userLogin.service.NJ_UserLoginService;

public class NJ_ClientUserLoginServiceImpl implements NJ_ClientUserLoginService{

	private NJ_UserLoginService nj_userLoginService;
	
	public NJ_UserLoginService getNj_userLoginService() {
		return nj_userLoginService;
	}
	public void setNj_userLoginService(NJ_UserLoginService nj_userLoginService) {
		this.nj_userLoginService = nj_userLoginService;
	}
	
	@Override
	public NJ_UserInfoDto mUserLogin(@FormParam("loginname")String loginname,@FormParam("password")String password){
		NJ_UserInfoDto userVerify = nj_userLoginService.userVerify(loginname, password);
		return userVerify;
	}
	
	@Override
	public NJ_UserInfoDto getUserInfoByUserName(String loginname) {
		return nj_userLoginService.getUserInfoByUserName(loginname);
	}
}
